package com.java502.shirodemo502.dao;

import com.java502.shirodemo502.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author:Teacher黄
 * @date:Created at 2019/07/29
 */
@Mapper
public interface UserMapper {


    /**
     * 查询所有
     * @return
     */
    List<User> findAll();

    /**
     * 通过用户名来查询用户信息
     * @param userName
     * @return
     */
    User findByUserName(@Param("userName") String userName);








}
